<% layout('layout') %>
<% block('head').append('<link type="text/css" href="/stylesheets/style.css">') %>
<div ng-controller="CenterCtrl" data-ng-init="chuli('<%= JSON.stringify(orderInfo) %>')">

    <% orderInfo[0].goods.forEach(function(good){ %>
    <div class="am-g am-margin-sm ">
        <div class="am-u-sm-2">
            <img src="<%=good.img%>" class="scor-img-45">
        </div>
        <div class="am-u-sm-7">
            <div class="am-text-warning scor-font-size-16"><%=good.pname + good.sname%></div>
            <div class="scor-color-555 scor-font-size-14">数量:<span class="scor-color-888"><%=good.size%></span></div>
        </div>
        <div class="am-u-sm-3">
            <div class="am-text-warning scor-font-weight-700 scor-font-size-14">￥<%=good.price%></div>
            <div>&nbsp;</div>
        </div>
    </div>
    <div class="am-g am-margin-left-sm ">
        <div class="am-u-sm-4 scor-font-size-14">
            <span>描述相符：</span>
        </div>
        <div class="am-u-sm-4 am-text-warning" >
            <i id="<%= good.pid+'s1'%>" class="am-icon-star" ng-click="clickstar('1<%=good.pid%>')"></i>
            <i id="<%= good.pid+'s2'%>" class="am-icon-star" ng-click="clickstar('2<%=good.pid%>')"></i>
            <i id="<%= good.pid+'s3'%>" class="am-icon-star" ng-click="clickstar('3<%=good.pid%>')"></i>
            <i id="<%= good.pid+'s4'%>" class="am-icon-star" ng-click="clickstar('4<%=good.pid%>')"></i>
            <i id="<%= good.pid+'s5'%>" class="am-icon-star" ng-click="clickstar('5<%=good.pid%>')"></i>
        </div>
        <div class="am-u-sm-4 scor-font-size-14">
            <span id="<%= good.pid+'star'%>">5星好评</span>
        </div>
    </div>
    <div class="am-g am-margin-left-sm ">
        <textarea id="<%= good.pid%>" class="am-margin-left-sm am-block scor-font-size-12" style="width: 80%" placeholder="输入评价"></textarea>
    </div>
    <% }) %>

    <div class="am-g am-margin-sm">
        <div class="am-u-sm-4 am-u-lg-4">
            <span class="am-show-md-down"></span>
            <span class="am-show-lg-only"></span>
        </div>
        <div class="am-u-sm-4 am-u-lg-4">
            <button type="button" class="am-btn am-btn-warning am-round" ng-click="sendeva()">发表评价</button>
        </div>
        <div class="am-u-sm-4 am-u-lg-4">
            <span class="am-show-md-down"></span>
            <span class="am-show-lg-only"></span>
        </div>
    </div>


</div>


<% include ../navbar.ejs %>
<% block('footer').append('<script src="'+CDN+'js/async.min.js"></script>') %>
<% block('footer').append('<script src="'+CDN+'script/center.js"></script>') %>
